<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout">

<div layout:fragment="body">
    <div class="l-form">
        <table class="l-table-form">
            <tr  class="tr_group">
                <th th:text="#{loanRequest.name}"></th>
                <td colspan="3" th:text="${loanRequest.name}"></td>
            </tr>
            <tr>
                <th th:text="#{loanRequest.channelId}"></th>
                <td colspan="3" th:text="${channelName}"></td>
            </tr>
            <tr>
                <th th:text="#{loanRequest.area}"></th>
                <td colspan="3" th:text="${area}"></td>
            </tr>
            <tr>
                <th th:text="#{loanRequest.mobile}"></th>
                <td colspan="3" th:text="${loanRequest.mobile}"></td>
            </tr>
            <tr>
                <th th:text="#{estateEvalInfo.houseTotalPrice}"></th>
                <td colspan="3" th:text="${estateEvalInfo.houseTotalPrice}"></td>
            </tr>
            <tr>
                <th th:text="#{estateEvalInfo.houseAddress}"></th>
                <td th:text="${estateEvalInfo.houseAddress}"></td>
                <th th:text="#{estateEvalInfo.buildingCode}"></th>
                <td th:text="${estateEvalInfo.buildingCode}"></td>
            </tr>
            <tr>
                <th th:text="#{estateEvalInfo.buildStruct}"></th>
                <td th:text="${estateEvalInfo.buildStruct}"></td>
                <th th:text="#{estateEvalInfo.roomSize}"></th>
                <td th:text="${estateEvalInfo.roomSize}"></td>
            </tr>
            <tr>
                <th th:text="#{estateEvalInfo.cellNo}"></th>
                <td th:text="${estateEvalInfo.cellNo}"></td>
                <th th:text="#{estateEvalInfo.roomNo}"></th>
                <td th:text="${estateEvalInfo.roomNo}"></td>
            </tr>
            <tr>
                <th th:text="#{estateEvalInfo.begin}"></th>
                <td th:text="${estateEvalInfo.begin}"></td>
                <th th:text="#{estateEvalInfo.end}"></th>
                <td th:text="${estateEvalInfo.end}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.loanAmount}"></th>
                <td th:text="${loanRequest.loanAmount}"></td>
                <th th:text="#{loanRequest.boughtAt}"></th>
                <td th:text="${loanRequest.boughtAt}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.propertyCoOwner}"></th>
                <td th:text="${loanRequest.propertyCoOwner}" liger="{type:'config', configCode:'HAVE_OR_NOT_ENUM'}"></td>
                <th th:text="#{loanRequest.isOnlyHouse}"></th>
                <td th:text="${loanRequest.isOnlyHouse}" liger="{type:'config', configCode:'IF_OR_NOT_ENUM'}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.mortgageStatus}"></th>
                <td th:text="${loanRequest.mortgageStatus}" liger="{type:'config', configCode:'HAVE_OR_NOT_ENUM'}"></td>
                <th th:text="#{loanRequest.useStatus}"></th>
                <td th:text="${loanRequest.useStatus}" liger="{type:'config', configCode:'HOUSE_USE_STATUS_ENUM'}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.isOverdue}"></th>
                <td th:text="${loanRequest.isOverdue}" liger="{type:'config', configCode:'HAVE_OR_NOT_ENUM'}"></td>
                <th th:text="#{loanRequest.overdueCount}"></th>
                <td th:text="${loanRequest.overdueCount}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.fundUse}"></th>
                <td colspan="3" th:utext="${loanRequest.fundUse}"></td>
            </tr>
            <tr class="tr_group">
                <th th:text="#{loanRequest.remark}"></th>
                <td colspan="3" th:utext="${loanRequest.remark}"></td>
            </tr>
            <tr>
                <th th:text="#{loanRequest.status}"></th>
                <td colspan="3" th:text="${loanRequest.status}" liger="{type:'config', configCode:'REQUEST_STATUS_ENUM'}">
            </tr>
        </table>
    </div>
</div>

<script type="text/javascript" layout:fragment="script">/*<![CDATA[*/
var status = '[[${loanRequest.status}]]';
$(function() {
    if (status == [[${T(cn.easy.mortgage.utils.Constants).REQUEST_STATUS_SUBMIT}]]) {
        $(".tr_group").show();
    }
    else {
        $(".tr_group").hide();
    }
});
var estateEvalId = '[[${loanRequest.estateEvalId}]]';
function viewEstateEval(id) {
    openDialog({
        title: '查看',
        url : '/estateEvalInfo/view?id=' + estateEvalId});
}
/*]]>*/</script>

</html>
